package com.lmwyc.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.lmwyc.bean.AreaDo;
import com.lmwyc.bean.UserSession;

@Mapper
public interface UserSessionMapper {
	List<UserSession> selectList();

	void updateUser(@Param("userName") String userName, @Param("sessionid") String sessionid,
			@Param("inuse") int inuse);

	UserSession selectOne(@Param("workNum") String workNum);

	void updateArea(@Param("userId") String userId, @Param("area") AreaDo areaDo);

	void updateMail(@Param("userId") String userId, @Param("mailAddress") String mailAddress);

	void updateTime(@Param("userId") String userId, @Param("time") int time);

	void updateName(@Param("userId") String userId, @Param("userName") String userName);

	int addUser(@Param("workNum") String workNum);
}
